package org.ix.shiro.shiro;

import lombok.Data;
import org.apache.shiro.authc.AuthenticationToken;

@Data
public class IxAuthenticationToken implements AuthenticationToken {

    private String token;

    public IxAuthenticationToken(String token){
        this.token = token;
    }

    @Override
    public String getPrincipal() {
        return token;
    }

    @Override
    public Object getCredentials() {
        return token;
    }
}
